package com.nt.train.util;

import java.util.ArrayList;
import java.util.List;
/**
 * @author hlf
 * @version 1.0
 * @date 2022/8/15 19:02
 */
public class PowerMockUtil {

    public int testMethodParamMock(List list) {
        return list.size();
    }

    public int testInternalNewInstance(int size) {
        ArrayList list = new ArrayList(size);
        return list.size();
    }

    public final String testFinalMethod() {
        return "Oneby";
    }

    public static String testStaticMethod() {
        return "Oneby";
    }

    private String testPrivateMethod(String name) {
        return name;
    }

    public String testSystemMethod(String key) {
        return System.getProperty(key);
    }

}